package post;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;

public class Store {
    private String address;
    private String name;
    private ProductCatalog productCatalog;
    private ArrayList<Item> itemList;
    
    Store(String givenAddress, String givenName) throws FileNotFoundException, IOException
    {
        this.address = givenAddress;
        this.name = givenName;
        itemList = new ArrayList<Item>();
        productCatalog = new ProductCatalog();
    }
    
    void stockItems() {
          itemList.add(productCatalog.getItemAtIndex(0));
          itemList.add(productCatalog.getItemAtIndex(0));
          itemList.add(productCatalog.getItemAtIndex(0));
          itemList.add(productCatalog.getItemAtIndex(1));
          itemList.add(productCatalog.getItemAtIndex(1));
          itemList.add(productCatalog.getItemAtIndex(1));
          itemList.add(productCatalog.getItemAtIndex(2));
          itemList.add(productCatalog.getItemAtIndex(2));
          itemList.add(productCatalog.getItemAtIndex(2));
    }
    
    public ProductCatalog getProductCatalog() {
        return this.productCatalog;
    }
}
